package edu.ubbcs.rs.backend.service.basic;

import edu.ubbcs.rs.backend.model.Reservation;
import edu.ubbcs.rs.backend.repository.ReservationRepository;
import edu.ubbcs.rs.backend.service.ReservationService;
import java.util.Date;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;

/**
 * @author Merli Andras-Bertalan
 * @version 1.0
 * @created 09-jan.-2015 15:37:43
 */
@Stateless(name = "ReservationService")
public class BasicReservationService implements ReservationService {

    @Inject
    private ReservationRepository reservationRepository;

    @Override
    public List<Reservation> getReservationsByDate(Date date) {
        return reservationRepository.getReservationsByDate(date);
    }

    @Override
    public void insert(Reservation item) {
        reservationRepository.insert(item);
    }

    @Override
    public void delete(Reservation item) {
        reservationRepository.delete(item);
    }

    @Override
    public List<Reservation> getAll() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Reservation getById(Long id) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void update(Reservation item) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void deleteAll() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Long getCount() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

}
